package com.itheima.demo3genericity;

public class genericityDemo1
{
    public static void main(String[] args) {
        StudentData studentData = new StudentData();
        Student s1 = new Student(1,"张三",18);
        Student s2 = new Student(2,"李四",19);
        Student s3 = new Student(3,"王五",20);
        studentData.add(s1);
        studentData.add(s2);
        studentData.add(s3);

        studentData.remove(s1);
        studentData.remove(s2);
//        studentData.remove(new Student());
//        studentData.search(1);
//        studentData.update(new Student());
    }
}
